#include <iostream>
using namespace std;
void main ()
{
int c;
char a;
int b;
int q=1;
cout<<"viberete 1 (gorizontalnaya liniya) 2 (vertikalnaya liniya)\n";
cin>>c;
cout<<"viberete cimvol\n";
cin>>a;
cout<<"viberete dliny linii\n";
cin>>b;
switch(c)
{
case 1:
			while(b>0)
		{
		cout<<a;
		b--;
		}
		break;
case 2:
		while(b>0)
		{
		cout<<a<<"\n";
		b--;
		}
		break;
default:
	cout<<"eroor";
}}